package groupe22;

import java.util.ArrayList;
import java.util.Iterator;
import javax.swing.tree.*;


public class AdaptateurModeL extends DefaultTreeModel{
    
    private DefaultMutableTreeNode racine;

    public AdaptateurModeL() {
        super(null,false);
        Element monFichierRacine=RacineL.getInstance();
        this.racine=new DefaultMutableTreeNode(monFichierRacine);
        this.setRoot(racine);

    }
    
    public void ajouterNoeud(Element f,MutableTreeNode parent,int index){
        
        DefaultMutableTreeNode fils=new DefaultMutableTreeNode(f);
        this.insertNodeInto(fils,parent,index);
 
        
    }
    
}
